class WindowBase extends eui.Component {
	public constructor() {
		super();
		this.addEventListener(eui.UIEvent.ADDED_TO_STAGE, this.show, this);
		this.addEventListener(eui.UIEvent.REMOVED_FROM_STAGE, this.hide, this);
	}
	protected createChildren(): void {
		super.createChildren();
		this.startLoad();
	}

	protected childrenCreated(): void {
		super.childrenCreated();
		this.loaded();
	}

	protected startLoad(): void {

	}

	protected loaded(): void {

	}

	protected show(): void {

	}

	protected hide(): void {

	}

	protected close(): void {
		if (this.parent) {
			this.parent.removeChild(this);
		}
	}
}